import Vue from 'vue'
import App from './App'
import router from './router'
import Iview from 'iview';
import store from './vuex/store'
import {axios,get,post,put,del} from './utils/request/axios';
import './custom/index'

//echarts
import * as echarts from 'echarts/core';
// 引入需要的图表，图表后缀都为 Chart
import {
  LineChart,
  PieChart
} from 'echarts/charts';
// 引入提示框，标题，直角坐标系组件，组件后缀都为 Component
import {
  TitleComponent,
  TooltipComponent,
  GridComponent
} from 'echarts/components';
// 引入 Canvas 渲染器，注意引入 CanvasRenderer 或者 SVGRenderer 是必须的一步
import {
  CanvasRenderer
} from 'echarts/renderers';
echarts.use([
  TitleComponent,
  TooltipComponent,
  GridComponent,
  CanvasRenderer,
  LineChart,
  PieChart
]);

import 'iview/dist/styles/iview.css';
import './style/index.scss';

Vue.config.productionTip = false

Vue.use(Iview);

Vue.prototype.$get = get;
Vue.prototype.$post = post;
Vue.prototype.$put = put;
Vue.prototype.$del = del;
Vue.prototype.$echarts = echarts;

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
